package com.hl.service;

import com.hl.mapper.PsychologicalTopicMapper;
import com.hl.pojo.PsychologicalTopic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PsychologicalTopicServiceImpl implements PsychologicalTopicService{
    @Autowired
    private PsychologicalTopicMapper mapper;
    @Override
    public Integer add(PsychologicalTopic psychologicalTopic) {
        return mapper.add(psychologicalTopic);
    }

    @Override
    public List<PsychologicalTopic> findAll() {
        return mapper.findAll();
    }


    @Override
    public Integer del(Integer id) {
        return mapper.del(id);
    }

    @Override
    public List<PsychologicalTopic> findById(Integer id) {
        return mapper.findById(id);
    }
}
